package cn.stimd.spring.validation;

import cn.stimd.spring.beans.PropertyAccessException;

/**
 * 处理错误的策略接口
 * <p>
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public interface BindingErrorProcessor {

    /**
     * 处理属性访问异常，并转换为FieldError
     */
    void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult);
}
